<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="{{asset('resources/views/admin/style/css/ch-ui.admin.css')}}">
    <link rel="stylesheet" href="{{asset('resources/views/admin/style/font/css/font-awesome.min.css')}}">
    <script type="text/javascript" src="{{asset('resources/views/admin/style/js/jquery.js')}}"></script>
    <script type="text/javascript" src="{{asset('resources/views/admin/style/js/ch-ui.admin.js')}}"></script>
    <script type="text/javascript" src="{{asset('resources/expand/layer/layer.js')}}"></script>
</head>
<body>
        <!--面包屑导航 开始-->
<div class="crumb_warp">
    <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
    <i class="fa fa-home"></i> <a href="{{url('admin/info')}}">首页</a> &raquo; 添加文章分类
</div>
<!--面包屑导航 结束-->

<!--结果集标题与导航组件 开始-->
<div class="result_wrap">
    <div class="result_title">
        <h3>快捷操作</h3>
                @if(count($errors)>0)
                    <div class="mark">
                        @if(is_object($errors))
                            @foreach($errors->all() as $error)
                                <p>{{$error}}</p>
                            @endforeach
                        @else
                            <p>{{session('errors')}}</p>
                        @endif
                    </div>
                @endif
    </div>
    <div class="result_content">
        <div class="short_wrap">
            <a href="#"><i class="fa fa-plus"></i>新增文章</a>
            <a href="#"><i class="fa fa-recycle"></i>批量删除</a>
            <a href="#"><i class="fa fa-refresh"></i>更新排序</a>
        </div>
    </div>
</div>
<!--结果集标题与导航组件 结束-->

<div class="result_wrap">
    <form action="{{url('admin/cate')}}" method="post">
        {!! csrf_field() !!}
        <table class="add_tab">
            <tbody>
            <tr>
                <th width="120"><i class="require">*</i>父级分类：</th>
                <td>
                    <select name="cat_pid">
                        <option value="0">==顶级分类==</option>
                        @foreach($catTree as $c)
                            <option value="{{$c->cat_id}}"     @if($c->cat_id==$info->cat_pid) selected="selected"  @endif>{{str_repeat('┝▷',$c->lev).$c->cat_name}}</option>
                            @endforeach
                    </select>
                </td>
            </tr>

            <tr>
                <th><i class="require">*</i>分类名称：</th>
                <td>
                    <input type="text" name="cat_name">
                    <span><i class="fa fa-exclamation-circle yellow"></i>分类名称必须填写</span>
                </td>
            </tr>

            <tr>
                <th>分类标题：</th>
                <td>
                    <input type="text" class="lg" name="cat_title">
                </td>
            </tr>

            <tr>
                <th>关键词：</th>
                <td>
                    <textarea name="cat_keywords"></textarea>
                </td>
            </tr>

            <tr>
                <th>描述：</th>
                <td>
                    <textarea name="cat_desc"></textarea>
                </td>
            </tr>

            <tr>
                <th><i class="require">*</i>排序：</th>
                <td>
                    <input type="text" class="sm" name="cat_order">
                </td>
            </tr>

            <th></th>
            <td>
                <input type="submit" value="提交">
                <input type="button" class="back" onclick="history.go(-1)" value="返回">
            </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</body>
</html>

